package com.shuang.service;

import java.util.List;
import java.util.Map;

import com.shuang.common.PageObject;
import com.shuang.pojo.DbOrder;
import com.shuang.pojo.DbOrderRecord;
import com.shuang.pojo.DbReceiveInformation;
import com.shuang.pojo.ShoppingPojo;
import com.shuang.pojo.TempDbOrder;

public interface DbOrderService {

	/**
	 * 创建临时缓存订单
	 * @param getuId
	 * @param dbReceiveInformation
	 * @param o_monmy
	 * @return
	 */
	TempDbOrder createTempOrder(Long getuId,DbReceiveInformation dbReceiveInformation, Long o_monmy,List<ShoppingPojo> listSave);

	Map<String, Object> createOrder(Long orderId, String buyMsg)  throws Exception;
	/**
	 * 分页获取指定状态订单信息 0 待审核 1待发货 2已发货 3 确认收获 即交易成功
	 * @param status
	 * @return
	 */
	PageObject<DbOrder> getOrderListByStatusAndPage(short status,int pageNum,int pageSize);
/**
 * 更新订单发货状态
 * @param oId
 * @param status
 * @return
 */
	Map<String, Object> updateOrderStatusByOid(long oId, short status);
/**
 * 查询订单基本信息
 * @param getuId
 * @return
 */
List<DbOrder> selBasicOrderInfo(Long getuId);


}
